package sartoservicesync.entities.presta.wrapper;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import sartoservicesync.entities.presta.PrestaEntity;
import sartoservicesync.entities.presta.PrestaProduct;

@XmlRootElement(name = "prestashop")
@XmlAccessorType(XmlAccessType.FIELD)
public class PrestaProductsWrapper extends PrestaMultiObjectWrapper{
	
	@XmlElementWrapper
	@XmlElement(name = "product")
	List<PrestaProduct> products = new ArrayList<PrestaProduct>();

	public List<PrestaProduct> getProducts() {
		return products;
	}

	public void setProducts(List<PrestaProduct> products) {
		this.products = products;
	}

	@Override
	public List<? extends PrestaEntity> getResourceList() {
		return getProducts();
	}

	
}
